let vm = new Vue({
    el: '.main-content',
    data: {
        sysUserInfo: {}
    },
    methods: {

        findById:function (id) {
            console.log("拿到id:"+id);
            axios.get("/guguanjia/sysuser/get?id="+id).then(function (resp) {
                vm.$data.sysUserInfo=resp.data;
            })
        },

        doUpdate:function (user) {
            axios({
                url: "/guguanjia/sysuser/updateById",
                method: "POST",
                data: user,
            }).then(response=>{
                let index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index)
            }).catch(error=>{
                layer.msg(error.message)
            })
        },

        cancel:function () {
            let index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index)
        }
    }
});
function abcdefg(data){
    vm.findById(data)
}